VMX: reduce number of posted-interrupt hooks
authorJan Beulich <jbeulich@suse.com>
Thu, 30 Aug 2018 09:02:09 +0000 (11:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 30 Aug 2018 09:02:09 +0000 (11:02 +0200)
commitb875755b41fa1801e5f6552bd5372dc16522d08e
treedd341864fbf9f6368a4263798f3785a59e440147
parent3ac0b20bc375cfe78eb01528f2a18ac305eff6ab
VMX: reduce number of posted-interrupt hooks

Three of the four hooks are not exposed outside of vmx.c, and all of
them have only a single possible non-NULL value. So there's no reason to
use hooks here - a simple set of flag indicators is sufficient (and we
don't even need a flag for the VM entry one, as it's always
(de-)activated together the the vCPU blocking hook, which needs to
remain an actual function pointer). This is the more that with the
Spectre v2 workarounds indirect calls have become more expensive.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/hvm/domain.h